<div class="row-fluid">
<div class="span9">

<header><i class="icon-folder-open"></i> Tasks Pending <span class="badge badge-important"><?= count($pending_tasks)?></span></header>
<table id="example" width="100%" class="table table-bordered table-condensed">
<thead>
<tr>
<th>Title</th>
<th>Start Date</th>
<th>Due Date</th>
<th>Priority</th>
</tr>
</thead>
<?php foreach($pending_tasks as $pending_task) {?>
<tr>
<td><a href="<?=site_url('user/tasks/task_detail').'/'.$pending_task->id?>"><?= $pending_task->title?></a></td>
<td><?= $pending_task->start_date?></td>
<td><?= $pending_task->end_date?></td>
<td><?= $pending_task->priority?></td>
</tr>
<?php }?>
</table>
<br />
<br />
<header><i class="icon-folder-open"></i> Tasks Achieved  <span class="badge badge-important"><?= count($achieved_tasks)?></span></header>
<table width="100%" class="table table-bordered table-condensed datatable">
<thead>
<tr>
<th>Title</th>
<th>Start Date</th>
<th>Due Date</th>
<th>Priority</th>
</tr>
</thead>
<?php foreach($achieved_tasks as $achieved_task) {?>
<tr>
<td><a href="<?=site_url('user/tasks/task_detail').'/'.$achieved_task->id?>"><?= $achieved_task->title?></a></td>
<td><?= $achieved_task->start_date?></td>
<td><?= $achieved_task->end_date?></td>
<td><?= $achieved_task->priority?></td>
</tr>
<?php }?>
</table>
<br />
<br />

<header><i class="icon-folder-close"></i> Closed Tasks <span class="badge badge-success">  <?= count($completed_tasks)?></span></header>

<table width="100%" class="datatable">
<thead>
<tr>
<th>Title</th>
<th>Start Date</th>
<th>Completed Date</th>
<th>Priority</th>
</tr>
</thead>
<?php foreach($completed_tasks as $completed_task) {?>
<tr>
<td><a href="<?=site_url('user/tasks/task_detail').'/'.$completed_task->id?>"><?= $completed_task->title?></a></td>
<td><?= $completed_task->start_date?></td>
<td><?= $completed_task->end_date?></td>
<td><?= $completed_task->priority?></td>
</tr>
<?php }?>
</table>

</div>

<div class="span3">
<header><i class="icon-th"></i> Status</header>
</div>